home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-PPC / PCI-BRID.{1U < prev    next >
Text File  |  1999-09-17  |  764b  |  31 lines

  1. #ifndef _ASM_PCI_BRIDGE_H
  2. #define _ASM_PCI_BRIDGE_H
  3.  
  4. unsigned long pmac_find_bridges(unsigned long, unsigned long);
  5.  
  6. /*
  7.  * pci_io_base returns the memory address at which you can access
  8.  * the I/O space for PCI bus number `bus' (or NULL on error).
  9.  */
  10. void *pci_io_base(unsigned int bus);
  11.  
  12. /*
  13.  * pci_device_loc returns the bus number and device/function number
  14.  * for a device on a PCI bus, given its device_node struct.
  15.  * It returns 0 if OK, -1 on error.
  16.  */
  17. int pci_device_loc(struct device_node *dev, unsigned char *bus_ptr,
  18.            unsigned char *devfn_ptr);
  19.  
  20. struct bridge_data {
  21.     volatile unsigned int *cfg_addr;
  22.     volatile unsigned char *cfg_data;
  23.     void *io_base;
  24.     int bus_number;
  25.     int max_bus;
  26.     struct bridge_data *next;
  27.     struct device_node *node;
  28. };
  29.  
  30. #endif
  31.